//
//  TLAVPlayerBottomBar.h
//  TLAVPlayerDemo
//
//  Created by Tianlong on 2017/6/29.
//  Copyright © 2017年 Tianlong. All rights reserved.
//

#import <UIKit/UIKit.h>


@class TLAVPlayerBottomBar;
@protocol TLAVPlayerBottomBarDelegate <NSObject>
@optional;
-(void)playerBottomBar:(TLAVPlayerBottomBar *)bottomBar beiginDraggingForCurTime:(float)curTime;
-(void)playerBottomBar:(TLAVPlayerBottomBar *)bottomBar endDraggingForCurTime:(float)curTime scale:(float)scale;
-(void)playerBottomBar:(TLAVPlayerBottomBar *)bottomBar didDraggingForScale:(float)scale;
-(void)playerBottomBar:(TLAVPlayerBottomBar *)bottomBar didClickedPlayBtn:(BOOL)playing;
-(void)playerBottomBar:(TLAVPlayerBottomBar *)bottomBar didClickedScreenBtn:(BOOL)isFullScreen;
@end

@interface TLAVPlayerBottomBar : UIView
/** 当前播放时间 */
@property (nonatomic , assign) float curTime;
/** 总时长 */
@property (nonatomic , assign) float amountTime;
/** 缓冲时间 */
@property (nonatomic , assign) float bufferTime;
@property (nonatomic , weak) id<TLAVPlayerBottomBarDelegate> delegate;

/** 通过该属性设置playBtn的icon */
@property (nonatomic , assign) BOOL playing;
/** 通过该属性设置全屏按钮的icon */
@property (nonatomic , assign) BOOL isFullScreen;

@end
